﻿// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Website: https://www.blazor.zone or https://argozhang.github.io/

namespace UnitTest.Extensions;

internal static class MarkupExtensions
{
    public static void Contains<TComponent>(this IRenderedComponent<TComponent> component, string expected) where TComponent : IComponent
    {
        Assert.Contains(expected, component.Markup);
    }

    public static void DoesNotContain<TComponent>(this IRenderedComponent<TComponent> component, string expected) where TComponent : IComponent
    {
        Assert.DoesNotContain(expected, component.Markup);
    }
}
